﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Go.Model;

namespace Go
{
    public partial class FinDelJuego : Form
    {
        public FinDelJuego(Player aPlayer)
        {
            InitializeComponent();
            initializeForLabels(aPlayer);
        }

        private void initializeForLabels(Player aPlayer){
            if (aPlayer == null)
                labelEmpate.Visible = true;
            else
            {
                labelGabador.Visible = true;
                labelJugadorGanador.Text = aPlayer.playerType() + " con " + aPlayer.colourString();
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void FinDelJuego_Load(object sender, EventArgs e)
        {

        }


    }
}
